package com.hanthink.system.service.equipment;

import java.util.List;

import com.hanthink.common.core.domain.AjaxResult;
import com.hanthink.system.domain.pc.EmOutgoingQuality;

/**
 * 任务检测service接口
 * 
 * @author hanthink
 * @date 2021-10-08
 */
public interface IEmOutgoingQualityService {


	   /**
     * 查询设备任务检测列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 设备任务检查集合
     */

    List<EmOutgoingQuality> selectEmOutgoingQualityList(EmOutgoingQuality emOutgoingQuality);

    /**
     * 查询塑胶事业部利润点主动抽查项目明细
     * @param batchno
     * @return
     */
    List<EmOutgoingQuality> selectEmOutgoingQualityListQC(String batchno,String isfinished,Long UserID);

    List<EmOutgoingQuality> selectEmOutgoingQualityListQCNobatch(String isfinished,Long userID);

    /**
     * 通过batchno查询审核明细
     * @param batchno
     * @param isfinished
     * @return
     */
     List<EmOutgoingQuality> selectEmOutgoingQualityListbybatchno(String batchno,String isfinished,String tasktype);

    /**
     * 新增设备任务检查列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    int insertEmOutgoingQuality(EmOutgoingQuality emOutgoingQuality);
    
    /**
     * 主动抽取当班任务检查
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    AjaxResult extractEmOutgoingQuality(EmOutgoingQuality emOutgoingQuality);

    /**
     * 塑胶事业部主动抽取任务
     * @param emOutgoingQuality
     * @return
     */
    AjaxResult extractEmOutgoingQualityQC(EmOutgoingQuality emOutgoingQuality);


    AjaxResult countCanBeExtracted(EmOutgoingQuality emOutgoingQuality);

    /**
     *塑胶事业部高层抽查
     * @param emOutgoingQuality
     * @return
     */
    AjaxResult extractEmOutgoingQualityQA(EmOutgoingQuality emOutgoingQuality);

    /**
     * LPA抽查
     *
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    AjaxResult extractEmOutgoingQualityLPA(EmOutgoingQuality emOutgoingQuality);

    /**
     * 更新设备任务检查列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    int  updateEmOutgoingQuality(EmOutgoingQuality emOutgoingQuality);

    /**
     * 塑胶事业部任务项目更新
     * @param emOutgoingQuality
     * @return
     */
    int  updateEmOutgoingQualityQC(EmOutgoingQuality emOutgoingQuality);
}
